package com.deep.ware.model.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 采购完成传输对象
 *
 * @author Deep
 * @date 2022/1/22
 */
@Data
public class PurchaseFinishVO {
    /**
     * 采购单id
     */
    @NotNull
    private Long id;
    /**
     * 采购项集合
     * items: [{itemId:1,status:4,reason:""},...]//完成/失败的需求详情
     */
    private List<ItemDoneVO> items;

    @Data
    public static class ItemDoneVO {
        private Long itemId;
        private Integer status;
        private String reason;
    }
}
